﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Infrastructure
{
    public class YYResponse
    {
        public YYResponse()
        {
            this.requestId = Guid.NewGuid().ToString();
        }

        public string requestId { set; get; }
        public bool success { set; get; }
    }
    /// <summary>
    /// WEBAPI通用返回泛型基类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class YYResponse<T> : YYResponse
    {
        /// <summary>
        /// 回传的结果
        /// </summary>
        public T Result { get; set; }
    }
}
